package com.zhang.demo.spring.bean.annotation;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class Config {

    @Bean("userService")
    public UserService getUser()
    {
        return new UserService();
    }


}
